.layer {
  opacity: 0;
  transition: 0.2s opacity linear;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  background-color: #000;
  background-color: rgba(0, 0, 0, 0.4);
  filter: alpha(opacity=40);
}

.countdown {
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -51px -42px;
  width: 83px;
  height: 101px;
  background: url("/nextStatic/img/redpacket-rain/sprite.png") no-repeat;
  background-position: -900px 0;
  z-index: 9;

  //&.num0 {
  //     background-position: -900px 0;
  // }
  &.num1 {
    background-position: -900px -101px;
  }

  &.num2 {
    background-position: -900px -202px;
  }

  &.num3 {
    background-position: -900px -303px;
  }

  &.num4 {
    margin: -30px -130px;
    width: 260px;
    height: 60px;
    background-position: -640px -162px;
  }
}

.duration {
  position: absolute;
  top: 52px;
  left: 36px;
  width: 180px;
  height: 40px;
  font-size: 22px;
  line-height: 40px;
  text-align: center;
  color: #fff;
  border-radius: 19px;
  background-color: rgba(255, 255, 255, 0.4);
  z-index: 9;

  #remainingSeconds {
    color: #ffe2b1;
  }
}

.tip {
  display: block;
  position: fixed;
  top: 50%;
  right: 0;
  margin: -30px 0 0 0;
  width: 194px;
  height: 60px;
  background: url("/nextStatic/img/redpacket-rain/sprite.png") no-repeat;
  background-position: -640px -101px;
  animation: slide 0.4s ease;
  z-index: 9;
}

@keyframes slide {
  from {
    right: -134px;
  }

  to {
    right: 0;
  }
}

.form {
  margin: 20px auto 0;
  width: 320px;

  .group {
    width: 300px;
    height: 50px;
    text-align: left;

    label {
      width: 80px;
      height: 30px;
      line-height: 30px;
      display: inline-block;
      text-align: right;
      padding: 0;
      margin: 0;
      font-size: 14px;
      color: #333;
    }

    input {
      width: 190px;
      height: 20px;
      font-size: 12px;
      color: #333;
      line-height: 20px;
      outline: none;
      padding: 4px;
      margin: 0;
      border: 1px solid #ddd;
    }

    p {
      display: none;
      margin: 0;
      text-align: left;
      font-size: 12px;
      line-height: 1.5;
      padding: 0 0 0 80px;
    }

    &.warning {
      input {
        border-color: #ee4a4a;
      }

      p {
        color: #ee4a4a;
        display: block;
      }
    }
  }
}
